package com.yang.javaws.java6WebService;
import java.util.ArrayList;
import java.util.List;

import javax.jws.WebService;

/**
 * 使用webservice发布的服务
 * @author yang
 *
 */
@WebService
public class TestService {
	
	private String name;
	
	public void setName(String name){
		this.name = name;
	}
	
	public String getName(){
		return this.name;
	}
	
	
	public int getInt(int a){
		return a;
	}
	public List<String> getList(){
		List<String> list = new ArrayList<String>();
		list.add("a");
		list.add("b");
		list.add("c");
		list.add("d");
		return list;
	}
	/*public Map<String,Object> getMap(){
		Map<String,Object> map = new HashMap<String,Object>();
		map.put("aa", 11);
		map.put("bb","cc");
		return map;
	}*/
	
	public Men getObject(){
		return new Men("jack");
	}
}
